﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETADTools.Lib
{
  public static class FieldListExportInterfaceExtension
  {
    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    public static string ToSqlExportSelect(this FieldList fieldList)
    {
      return string.Join(",\n    ", fieldList.Select(t => t.ToSqlExportSelect()));
    }

    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    public static string ToSqlExportRowContent(this FieldList fieldList)
    {
      return string.Join("\n  ", fieldList.Select(t => t.ToSqlExportRowContent()));
    }

  }
}
